﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace PHMEE.Admin
{
    /// <summary>
    /// 
    /// </summary>
    public interface ISysParaAppService : IApplicationService
    {
        /// <summary>
        /// 根据id查询采集站
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SysParaByIdDto> GetByIdAsync(Guid id);
        /// <summary>
        /// 根据采集站编码查询--下发参数使用
        /// </summary>
        /// <param name="collectorCode">采集站编码</param>
        /// <returns></returns>
        Task<SysParaDto> GetByIdUseMqttAsync(string collectorCode);
        /// <summary>
        /// 插入策略数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<SysParaListDto> CreateSysParaAsync(SysParaCreateDto input);
        /// <summary>
        /// 查看数采器配置信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<SysParaListResultDto> GetAllSysParaAsync(PageSysParaDto input);
        /// <summary>
        /// 更新波形，指标间隔数据
        /// </summary>
        /// <param name="id"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        Task UpdateAsync(SysParaUpdateDto input);
        /// <summary>
        /// 删除波形，指标间隔数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(Guid id);
        /// <summary>
        /// 创建数采器扩展信息
        /// </summary>
        /// <param name="createSysParaExtendDto"></param>
        /// <returns></returns>
        Task CreateSysParaExtendAndUpdateSyspara(CreateSysParaExtendDto createSysParaExtendDto);

        /// <summary>
        /// 根据数采器编码查看扩展信息
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<SysParaExtendDto> GetSyaParaExtendAsync(string code);
    }
}
